selectWord

public static EditorCommand selectWord()

Returns a command that allows selecting the word at the caret position in a text field, text area or a WYSIWYG editor.